﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ODP.Model;
using ODP.Enum;

namespace ODP.DAL
{
    public class OAuth
    {
        public ReturnMessage AddOAuthInfo(OAuthInfo oai)
        {
            ReturnMessage rm = new ReturnMessage();

            IList<ExecInfo> eiList = new List<ExecInfo>();

            ExecInfo ei = ODP.Helper.DALHelper.TSQLForInsertIntoAccess(oai, FormName.oauth);
            eiList.Add(ei);

            rm = ODP.Helper.DALHelper.ExecTSQL(eiList);

            return rm;
        }
    }
}
